import request from '@/utils/request'

// 获取用户房间列表
export function getUserRoomListAPI(params) {
  return request({
    url: '/admin/room/queryrooms',
    method: 'get',
    params
  })
}

// 获取房间信息
export function getUserRoomDetailAPI(params) {
  return request({
    url: '/admin/room/queryroomonid',
    method: 'get',
    params
  })
}

// 获取子房间信息
export function getUserRoomChildrenDetailAPI(params) {
  return request({
    url: '/admin/room/querychildrenroom',
    method: 'get',
    params
  })
}

// 更新用户房间
export function updateUserRoomAPI(params) {
  return request({
    url: '/admin/room/updateuserroom',
    method: 'post',
    params
  })
}

// 封禁用户房间
export function bannedUserRoomAPI(params) {
  return request({
    url: '/admin/room/addforbidroom',
    method: 'post',
    params
  })
}

// 解封用户房间
export function freedUserRoomAPI(params) {
  return request({
    url: '/admin/room/unforbidroom',
    method: 'post',
    params
  })
}

// 查询用户房间封禁详情
export function getUserRoomBannedDetailAPI(params) {
  return request({
    url: '/admin/room/queryforbidroom',
    method: 'get',
    params
  })
}

// 更新房间封禁信息
export function updateUserRoomBannedAPI(params) {
  return request({
    url: '/admin/room/updateforbidroom',
    method: 'post',
    params
  })
}

